﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/design.Master" CodeBehind="mixingbowl.aspx.vb" Inherits="CakeThatIBaked.mixingbowl" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="theheader">
        The Mixing Bowl
    </div>
    <div class="thecontainer">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div class="thecontainerleft">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource2">
                    <ItemTemplate>
                    <%# getpics(Eval("ID"), Eval("CakePictureMain"))%>
               
                    </ItemTemplate>
                    </asp:Repeater>
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:CakeConnection %>" 
                        ProviderName="<%$ ConnectionStrings:CakeConnection.ProviderName %>" 
                        SelectCommand="SELECT [ID], [CakePictureMain], [CakeRating], [Author], [CakeDescription], [CakeTitle] FROM [Cakes]">
                    </asp:SqlDataSource>
                </ContentTemplate>
                <Triggers>
                    <asp:PostBackTrigger ControlID="cbl_recipe" />
                </Triggers>

            </asp:UpdatePanel>
        </div>
        <div class="thecontainerright">
            <asp:CheckBoxList ID="cbl_recipe" runat="server" AutoPostBack="True" 
                DataSourceID="SqlDataSource1" DataTextField="RecipeItem" DataValueField="ID">
            </asp:CheckBoxList>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:CakeConnection %>" 
                ProviderName="<%$ ConnectionStrings:CakeConnection.ProviderName %>" 
                SelectCommand="SELECT [ID], [RecipeItem] FROM [RecipeTags]">
            </asp:SqlDataSource>
        </div>
    </div>

</asp:Content>
